import sys
sys.path.append("./unit/")
from BuildeData import Build
from CsvToData import CsvToData
from SettingConfig import SettingConfig





if __name__ == "__main__":

    arg= sys.argv
    if len(arg) >= 2 :
        SettingConfig._csvFilePath=arg[1]
        pass

    if len(arg) ==3 :
        SettingConfig._buildFilePrefix=SettingConfig._buildFilePrefix+ arg[2]+"_"
        pass

    csvD= CsvToData()
    csvD.loadCsv(SettingConfig._csvFilePath)
    b=Build()
    b.build(csvD)
    
    pass